<?php

namespace app\api\controller;

use app\common\controller\Api;
use think\Cache;
use think\helper\Arr;
use think\Exception;

use app\common\services\ExamService;

/**
 * ICAO模拟考试
 */
class Exam extends Api
{
    
    protected $noNeedRight = '*';
    
    /**
     * 获取模拟考试初考、复考分类
     *
     * @return void
     */
    public function start(){

        try {
            $result = ExamService::getCate();
        } catch (\Exception $e) {
            return $this->error($e->getMessage());
        }
        return $this->success('success',$result);
    }
}
